import * as ActionTypes from '../constant/ActionTypes';

export default function counter(state = 0, action) {
    switch (action.type) {
        case ActionTypes.DECREASE_COUNTER:
            return state - 1;
        case ActionTypes.INCREASE_COUNTER:
            return state + 1;
        default:
            return state;
    }
}
			